// -----------------------------------------------------------------------
//  <copyright file="EventSourcedEventConfiguration.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024/12/10 1:31:22</last-date>
// -----------------------------------------------------------------------

using Microsoft.EntityFrameworkCore.Metadata.Builders;


namespace DaprPlus.EntityFrameworkCore;

public class EventSourcedEventConfiguration : EntityConfigurationBase<EventSourcedEvent>
{
    /// <summary>
    /// 配置类型的实体
    /// </summary>
    /// <param name="builder">用于配置实体类型的构建器。</param>
    public override void Configure(EntityTypeBuilder<EventSourcedEvent> builder)
    {
        builder.Property(m => m.EventType).HasMaxLength(500);
    }
}
